package com.conan.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version 加油！！！
 * @Description
 * @Author 谷藤新一GYC
 * @Date 2022/10/23 - 10:03
 */
@Controller
public class HelloController {

    //"/"->/WEB-INF/templates/index.html
//    @RequestMapping(value = "/")
    @RequestMapping("/")
    public String index(){
        //返回视图名称

        return "index";
    }

    @RequestMapping("/target")
    public String toTarget(){

        return "target";
    }
}
   